<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title><?php echo $title; ?></title>
    
     <link rel="shortcut icon" href="public/images/favicon.png"/>

    <!-- Bootstrap -->
    <link href="public/css/bootstrap.min.css" rel="stylesheet">
    <link href="public/css/style.css" rel="stylesheet">
    
    <script src="public/js/jquery.min.js"></script>
    
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="public/js/html5shiv.js"></script>
      <script src="public/js/respond.min.js"></script>
    <![endif]-->
  </head>
<body>
    
    <div class="container">
        <div class="row">
            <div class="col-sm-4">
                <img src="public/images/logo.gif" alt="logo" />
            </div>
            <div class="col-sm-4 pull-right">
                <form id="search" method="get" action="index.php">
                    <div class="form-group">
                        <input name="r" type="hidden" value="articles/search" />
                        <input name="q" type="text" class="form-control" placeholder="Tìm kiếm" />
                    </div>
                </form>
            </div>
        </div>
    </div>
    
    <?php require('frontend/views/common/navbar.phtml'); ?>
    
    <div class="container">
        <div class="row">
            <div class="col-sm-8">
                <?php if(isset($_content)) require($_content); ?>
            </div>
            <div id="sidebar" class="col-sm-4">
                <?php require('frontend/views/common/sidebar.phtml'); ?>
            </div>            
        </div>
    </div>
    
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="public/js/bootstrap.min.js"></script>
</body>
</html>